<template>
  <div>
      <div class="title">周末去哪儿</div>
      <div class="item" v-for="item in weekendList" :key="item.id">
          <div class="item-img-wrapper">
              <img class="item-img border-left border-right" :src="item.imgUrl" />
          </div>
          <div class="item-info">
              <div class="item-title">{{item.title}}</div>
              <div class="item-desc">{{item.desc}}</div>
          </div>
      </div>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: {
      type: Array
    }
  },
  data () {
    return {
    }
  }
}
</script>

<style lang="stylus" scope>
@import '~styles/varibles.styl'
@import '~styles/mixins.styl'
.title
  background: #EDEDED
  line-height: .8rem
  text-indent: .2rem
.item
  margin-bottom: .2rem
 .item-img-wrapper
  overflow: hidden
  height: 0
  padding-bottom: 33.3%
  .item-img
   width: 100%
  background: #CDCD00
 .item-info
  padding: .2rem .1rem
  .item-desc
    margin-top: .1rem
    font-size: .24rem
    color: $darkTextColor
    ellipsis()
  .item-title
   font-size: .28rem
   padding-bottom: .1rem
</style>
